package com.right.near.business.model.ao;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 登陆参数
 *
 * @author: Star.zhu
 * @date: 2022/8/12
 */
@Data
public class LoginAO {

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空")
    @Size(max = 50, message = "用户名称最长不能超过50")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 50, message = "密码长度最小为6位最大为50位")
    private String password;

}
